package com.cyx.mapper;

import com.cyx.pojo.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;

public class UserMapperImpl2 extends SqlSessionDaoSupport implements UserMapper {
    @Override
    public User getUser(int id) {
        return this.getSqlSession().getMapper(UserMapper.class).getUser(id);
    }

    @Override
    public int addUser(User user) {
        return getSqlSession().getMapper(UserMapper.class).addUser(user);
    }

    @Override
    public int deleteUser(int userId) {
        return getSqlSession().getMapper(UserMapper.class).deleteUser(userId);
    }
}
